/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ensma.ia.miniblog.persistence;

import java.io.Serializable;
import javax.persistence.Entity;


/**
 *
 * @author LeBlero
 */
@Entity
public class Administrateur extends Auteur implements Serializable {
    private static final long serialVersionUID = 1L;

    public Administrateur() {
        super();
    }

    public Administrateur(String n, String m) {
        super(n, m);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (super.getId() != null ? super.getId().hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof Administrateur)) {
            return false;
        }
        Administrateur other = (Administrateur) object;
        if ((super.getId() == null && other.getId() != null) || (super.getId() != null && !super.getId().equals(other.getId()))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "fr.ensma.ia.miniblog.Admin[id=" + super.getId() + "]";
    }

}
